<script setup lang="ts">
import {ref} from 'vue'
import {getmyCreateTeam, getmyJoinTeam} from "@/api/team.ts";
import {useRouter ,useRoute } from "vue-router";
import TeamcordList from "@/components/TeamcordList.vue";
import {showFailToast} from "vant";
const router = useRouter()
const route = useRoute()

const id = route.query.id
const teamList = ref([])
console.log(route)
console.log(router)
getmyJoinTeam(id).then(res => {
  if (res.data.data){
    teamList.value = res.data.data
  }else {
    showFailToast(res.data.description);
  }

  console.log(res)
}).catch((err) => {})
</script>

<template>
  <TeamcordList :TeamList="teamList"></TeamcordList>
</template>

<style scoped>

</style>